package org.example.handler;

import org.example.parser.ComponentParser;
import org.example.parser.FlowParser;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * 命名空间处理
 */
public class MyNamespaceHandler extends NamespaceHandlerSupport {
    @Override
    public void init() {
        registerBeanDefinitionParser("component", new ComponentParser());
        registerBeanDefinitionParser("flow", new FlowParser());
    }
}
